<body>
<div class="path"><span class="fn-fb">首页</span>{$path}<a href="###" class="fn-fb">{$title}<span class="blue">[扩展]</span></a></div>
<div class="button-nav">
<a href="{url('article/extsadd',array(mid=>$mid,cid=>$cid,fid=>$fid,title=>$title))}" class="button button-blank button-link" title="增加内容"><i class="iconfont" title="增加内容">&#xF023;</i> 增加扩展内容</a>
<span id="checkall" class="button button-blank button-link"><i class="iconfont">&#xF029;</i> 全选</span><span id="checktog" class="button button-blank button-link"><i class="iconfont">&#xF04D;</i> 反选</span><span id="checkoff" class="button button-blank button-link"><i class="iconfont">&#xF028;</i> 取消</span><span onclick="myform.submit()" class="button button-blank"><i class="iconfont">&#xF011;</i> 删除</span>
</div>
<div class="m5">
<form id="myform" action="{url('article/extlists')}" method="post">
<input type="hidden" name="act" value="alldel" />
<input type="hidden" name="cid" value="{$cid}"/>
<input type="hidden" name="fid" value="{$fid}"/>
<input type="hidden" name="mid" value="{$mid}"/>
<input type="hidden" name="title" value="{$title}"/>
<table class="table table-bordered table-striped" width="100%">
<thead><tr><th class="w10 fn-tac"><input id="all" type="checkbox" name="all" value="all" /></th><th class="w30 fn-tac">ID</th><th class="tal">内容标题</th><th class="w120 fn-tac">更新时间</th><th class="w120 fn-fn-tac">操作</th></tr></thead>
<tbody>
{loop $list $vo}
<tr>
    <td class="fn-tac"><input cssrain="one" type="checkbox" name="aid[]" value="{$vo['id']}" /></td>
    <td class="fn-tac">{$vo['id']}</td>
    <td><i class="iconfont">&#xF038;</i> <a title="编辑" href="{url('article/extsadd',array(mid=>$mid,cid=>$cid,fid=>$fid,title=>$title,aid=>$vo['id']))}">{if $vo['fontcolor']}<span style="color:{$vo['fontcolor']}">{/if}{$vo['title']}{if $vo['fontcolor']}</span>{/if}</a></td>
    <td class="fn-tac">{date('Y-m-d H:i:s',$vo['uptime'])}</td>
    <td class="fn-tac tip">
      <a class="blue" title="预览" href="{url('default/index/exts',array(cid=>$cid,aid=>$vo['id']))}" target="_blank">预览</a>/<a class="blue" title="编辑" href="{$aid}{url('article/extsadd',array(mid=>$mid,cid=>$cid,fid=>$fid,title=>$title,aid=>$vo['id']))}">编辑</a>/<a title="删除" href="###" class="blue del" url="{url('article/extlists',array(mid=>$mid,cid=>$cid,fid=>$fid,aid=>$vo['id'],act=>del))}">删除</a>
    </td>
</tr>
{/loop}
</tbody>
</table>
</form>
<div id="page">{$page}</div>
</div>
<script type="text/javascript">
Do('base','Dialog',function(){
    $('.del').click(function(){$(this).cpDelete();});
})
</script>
<body>